<?php namespace Admin\Controller; 
//后台首页控制器
class IndexController extends CommonController{

	
    //首页
    public function index(){
       View::make();
    }
	//欢迎页
	public function welcome(){
	    View::make();
	}
	//修改密码
	public function changepwd(){
		//如果用户提交
		if(IS_POST){
			$model=new \Common\Model\Adminuser;
			if(!$model->store()) View::error($model->getError());
			//成功提示
			$url=U('Login/index');
			$str=<<<str
			parent.location.href="{$url}";
str;
		echo $str;
		}
	    View::make();
	}
}
